package cc.ycws.api.controller;

import java.util.List;
import javax.annotation.Resource;

import cc.ycws.core.domain.Accessrecord;
import cc.ycws.core.service.AccessrecordService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 获取用户信息
 */
@Controller
@RequestMapping("/ssm/access")
public class AccessrecordApi {

    @Resource
    AccessrecordService accessrecordService;

    @RequestMapping(value = "/padnumber", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public String padnumber(ModelMap map) {
        List<Accessrecord> list = accessrecordService.querypadnumber();
        map.addAttribute("list", list);
        return "padnumber";
    }
}
